package cn.silver.module.authority.param;

import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import cn.silver.framework.mybatis.param.BusParam;
import cn.silver.module.authority.domain.SysRole;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;

/**
 * 角色信息业务对象 sys_role
 *
 * @author Michelle.Chung
 */

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(name = "RoleParam",title = "角色管理查询条件对象")
@AutoMapper(target = SysRole.class, reverseConvertGenerate = false)
public class RoleParam extends BusParam {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "角色类型")
    @TableField(name = "type",searchType = SearchTypeEnums.EQ)
    private String type;
    /**
     * 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
     */
    @Schema(title = "数据权限范围")
    @TableField(name = "scope",searchType = SearchTypeEnums.EQ)
    private String scope;

}
